package com.songlanyun.modules.article.controller.api;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.article.entity.ArticleCourseClassify;
import com.songlanyun.modules.article.service.ArticleCourseClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

//import org.apache.shiro.authz.annotation.RequiresPermissions;


/**
 * 文章课程分类表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-03-01 14:12:17
 */
@RestController
@RequestMapping("api/article/course/classify")
public class ArticleCourseClassifyApiController {
    @Autowired
    private ArticleCourseClassifyService articleCourseClassifyService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    //@RequiresPermissions("article:articlecourseclassify:list")
    public R list(@RequestParam Map<String, Object> params){
        List<ArticleCourseClassify> list = articleCourseClassifyService.appList(params);

        return R.ok().put("list", list);
    }



}
